    
    
    
    import {Route , Link } from "react-router-dom"
    
    function Custom(props){
        console.log(props);
        let {to,children} = props
        return(
            <Route path = {to} children ={(props)=>{
                console.log(props);
                let {match} = props
                if(match){
                    return (
                        <Link to = {to}>{"☝" + children}</Link>
                    )
                }else{
                    return (
                        <Link to = {to}>{children}</Link>
                    )
                }
            }}></Route>
        )
        
    }

    export default Custom